package com.ruoyi.statistics.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.statistics.mapper.LabStatisticsBaseMapper;
import com.ruoyi.statistics.domain.LabStatisticsBase;
import com.ruoyi.statistics.service.ILabStatisticsBaseService;

/**
 * 高基Service业务层处理
 * 
 * @author jun.wang
 * @date 2022-05-12
 */
@Service
public class LabStatisticsBaseServiceImpl implements ILabStatisticsBaseService 
{
    @Autowired
    private LabStatisticsBaseMapper labStatisticsBaseMapper;

    /**
     * 查询高基
     * 
     * @param id 高基ID
     * @return 高基
     */
    @Override
    public LabStatisticsBase selectLabStatisticsBaseById(Long id)
    {
        return labStatisticsBaseMapper.selectLabStatisticsBaseById(id);
    }

    /**
     * 查询高基列表
     * 
     * @param labStatisticsBase 高基
     * @return 高基
     */
    @Override
    public List<LabStatisticsBase> selectLabStatisticsBaseList(LabStatisticsBase labStatisticsBase)
    {
        return labStatisticsBaseMapper.selectLabStatisticsBaseList(labStatisticsBase);
    }

    /**
     * 新增高基
     * 
     * @param labStatisticsBase 高基
     * @return 结果
     */
    @Override
    public int insertLabStatisticsBase(LabStatisticsBase labStatisticsBase)
    {
        labStatisticsBase.setCreateTime(DateUtils.getNowDate());
        return labStatisticsBaseMapper.insertLabStatisticsBase(labStatisticsBase);
    }

    /**
     * 修改高基
     * 
     * @param labStatisticsBase 高基
     * @return 结果
     */
    @Override
    public int updateLabStatisticsBase(LabStatisticsBase labStatisticsBase)
    {
        return labStatisticsBaseMapper.updateLabStatisticsBase(labStatisticsBase);
    }

    /**
     * 批量删除高基
     * 
     * @param ids 需要删除的高基ID
     * @return 结果
     */
    @Override
    public int deleteLabStatisticsBaseByIds(Long[] ids)
    {
        return labStatisticsBaseMapper.deleteLabStatisticsBaseByIds(ids);
    }

    /**
     * 删除高基信息
     * 
     * @param id 高基ID
     * @return 结果
     */
    @Override
    public int deleteLabStatisticsBaseById(Long id)
    {
        return labStatisticsBaseMapper.deleteLabStatisticsBaseById(id);
    }
}
